﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;



public class VideoPlanAdaptationTool : MonoBehaviour
{
    private void Start()
    {
        m_AdaptationCameraAndPlan();
    }

    [SerializeField]
    private Camera m_mediaCamera;
    [SerializeField]
    private Transform m_mesh;

    [ContextMenu("Editor Adaptation")]
    private void m_AdaptationCameraAndPlan()
    {
        var cps = UtilityFunctions.GetCameraRectPoint_X_Y_Dimensional(m_mediaCamera);
        m_mesh.localScale = cps.U_R - cps.D_L;
    }

}
